/**
 * @type {Number}
 *
 * @properties={typeid:35,uuid:"612306A4-D518-4A83-856A-E22B8C944A6D",variableType:8}
 */
var T_importe = null;

/**
 *
 * @properties={typeid:24,uuid:"DAC38CF8-962B-4C29-8954-CE9AEC324893"}
 */
function calcular_totales()
{
	// recorre foundset
	T_importe = 0
	for ( var i = 1 ; i <= controller.getMaxRecordIndex(); i++ )
	{
		foundset.setSelectedIndex(i)
		T_importe += importe_signo_pagos
	}
}

/**
 *
 * @properties={typeid:24,uuid:"D18B7BA2-02D7-4543-96C3-D0E257EFB42A"}
 */
function imprimir() 
{
	forms.diario_pagos_2_imp.controller.showPrintPreview(false)
}

/**
 * @properties={typeid:24,uuid:"26282422-A659-47BA-844F-25588A654A5D"}
 */
function pdf()
{
	globals.metodoPdf('diario_pagos_2_imp','Diario_pagos',true)
}

/**
 * Perform the element default action.
 *
 * @param {JSEvent} event the event that triggered the action
 *
 * @properties={typeid:24,uuid:"D8CB4D8D-D43D-4FF4-97C2-56E76CEEC2D4"}
 */
function Ira_detalle(event) 
{
	forms.op_cabecera_imp.controller.loadRecords(forms.diario_compras_2.ctacte_pr_to_op_cabecera);
	globals.formEnVentana('op_cabecera_imp','det_opago','Orden de Pago')
}
